<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"/>
	<script type="text/javascript" src="${ctx}/resource/js/app/index.js?r=${random}"></script>
</head>

<body class="easyui-layout">
	<div data-options="region:'north',border:false" style="height:60px;padding:10px">
		欢迎你：<shiro:principal />
		<a href="/logout" class="easyui-linkbutton search-button">退出系统</a>
		<a href="javascript:App.openTab('修改密码', '/user/password');" class="easyui-linkbutton search-button">修改密码</a>
	</div>
	<div data-options="region:'west',split:true,title:'赵涌牛管理系统'" style="width:250px;">
		<!-- accordion start -->
		<div id="left-accordion" class="easyui-accordion">
			<c:forEach var="menu" items="${sessionScope._menu }">
				<div title="${menu.name }" data-options="selected:true" style="overflow:auto;padding:10px;">
					<c:forEach var="leaf" items="${menu.children }">
						<p><a class="menu" href="javascript:void(0);" rel="${leaf.url }">${leaf.name }</a></p><br>
					</c:forEach>
				</div>
			</c:forEach>
			<!-- <div title="系统权限" data-options="selected:true" style="overflow:auto;padding:10px;">
				<p><a class="menu" href="javascript:void(0);" rel="admin/user">用户管理</a></p><br>
				<p><a class="menu" href="javascript:void(0);" rel="admin/role">角色管理</a></p><br>
				<p><a class="menu" href="javascript:void(0);" rel="admin/permission">权限管理</a></p><br>
			</div> -->
		</div>
		<!-- accordion end -->
	</div>
	
	<div data-options="region:'center'">
		<div id="tabs" class="easyui-tabs" fit="true" border="false" ></div>
	</div>
	
	<!-- tab页右键菜单 -->
	<div id="rcmenu" class="easyui-menu" style="">
	    <div data-options="iconCls:'icon-cancel'" id="closecur">
	        关闭
	    </div>
	    <div id="closeall">
	        关闭全部
	    </div> 
	    <div id="closeother">
	        关闭其他
	    </div>
	    <div class="menu-sep"></div>
	    <div id="closeright">
	        关闭右侧标签页
	    </div>
	    <div id="closeleft">
	        关闭左侧标签页
	    </div>
	</div>
</body>
</html>